home *** CD-ROM | disk | FTP | other *** search
/ Champak 119 / (Vol 119) Nov 09 2010.iso / Games / mini_pool_2.swf / scripts / DefineButton2_64 / BUTTONCONDACTION on(release).as
Text File  |  2010-11-09  |  311b  |  19 lines

  1. on(release){
  2.    if(_root.paused == 0)
  3.    {
  4.       oldTimp = getTimer();
  5.       _root.paused = 1;
  6.    }
  7.    else
  8.    {
  9.       timpInter = getTimer() - oldTimp;
  10.       i = 0;
  11.       while(i <= 9)
  12.       {
  13.          _root["b" + i].timpIni += timpInter;
  14.          i++;
  15.       }
  16.       _root.paused = 0;
  17.    }
  18. }
  19.